package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2025/1/17 13:52
*/

// CGGameAUConfiguration 云游戏AU配置表
type CGGameAUConfiguration struct {
	ID                          int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	LimitUserLoginFreeTime      int64          `json:"limit_user_login_free_time" gorm:"column:limit_user_login_free_time;type:bigint;not null;default:0;comment:配置用户最多能拥有多少的登录免费时长"`
	LimitNewUserGetFreeTime     int64          `json:"limit_new_user_get_free_time" gorm:"column:limit_new_user_get_free_time;type:bigint;not null;default:0;comment:配置新用户可获得多少免费时长（属于登录免费时长）"`
	LimitUserGetLoginFreeTime   int64          `json:"limit_user_get_login_free_time" gorm:"column:limit_user_get_login_free_time;type:bigint;not null;default:0;comment:配置用户每日登录可获得多少登录免费时长"`
	RecommendedDownloadUrl      string         `json:"recommended_download_url" gorm:"column:recommended_download_url;type:varchar(500);not null;default:'';comment:推荐下载"`
	NoviceRecommendationUrl     string         `json:"novice_recommendation_url" gorm:"column:novice_recommendation_url;type:varchar(500);not null;default:'';comment:新手推荐"`
	LocalDownloadUrl            string         `json:"local_download_url" gorm:"column:local_download_url;type:varchar(500);not null;default:'';comment:本地下载"`
	MD5OfRecommendedDownloadUrl string         `json:"md_5_of_recommended_download_url" gorm:"column:md_5_of_recommended_download_url;type:varchar(500);not null;default:'';comment:推荐下载对应的md5"`
	CreatedAt                   time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt                   time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt                   gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUConfiguration) TableName() string {
	return "cg_game_au_configuration"
}
